#!/usr/bin/env python3
# -*- coding: utf-8 -*-

import numpy as np
import cv2 as cv


def Test():
    #img = cv.imread('lena.jpg', cv.IMREAD_COLOR)
    img = cv.imread('lena.jpg', cv.IMREAD_GRAYSCALE)
    #img = cv.imread('lena.jpg', cv.IMREAD_UNCHANGED)

    print(img)

    cv.imshow('image', img)
    cv.waitKey(0)
    cv.destroyAllWindows()

    cv.imwrite('new.png', img)

if __name__ == '__main__':
    Test()

